# Dockerfile.web
FROM langgenius/dify-web:1.2.0

##CAE_COMMON_VARS_PLACE_HOLDER##

##DIFY_COMMON_VARS_PLACE_HOLDER##

ENV CONSOLE_API_URL=${CONSOLE_API_URL:-} \
    APP_API_URL=${APP_API_URL:-} \
    SENTRY_DSN=${WEB_SENTRY_DSN:-} \
    NEXT_TELEMETRY_DISABLED=${NEXT_TELEMETRY_DISABLED:-0} \
    TEXT_GENERATION_TIMEOUT_MS=${TEXT_GENERATION_TIMEOUT_MS:-60000} \
    CSP_WHITELIST=${CSP_WHITELIST:-} \
    MARKETPLACE_API_URL=${MARKETPLACE_API_URL:-https://marketplace.dify.ai} \
    MARKETPLACE_URL=${MARKETPLACE_URL:-https://marketplace.dify.ai} \
    TOP_K_MAX_VALUE=${TOP_K_MAX_VALUE:-} \
    INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH:-} \
    PM2_INSTANCES=${PM2_INSTANCES:-2} \
    LOOP_NODE_MAX_COUNT=${LOOP_NODE_MAX_COUNT:-100} \
    MAX_TOOLS_NUM=${MAX_TOOLS_NUM:-10} \
    MAX_PARALLEL_LIMIT=${MAX_PARALLEL_LIMIT:-10} \
    MAX_ITERATIONS_NUM=${MAX_ITERATIONS_NUM:-5}